/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2022-09-30
 * Time: 9:19
 */
public class Test_LinkedList {
    public static void main(String[] args) {


/*        list.addLast(12);
        list.addLast(23);
        list.addLast(34);
        list.addLast(45);
        list.addLast(56);
        list.display();*/

        LinkedList list = new LinkedList();
        list.addFirst(12);
        list.addFirst(23);
        list.addFirst(34);
        list.addFirst(45);
        list.addFirst(56);
        list.display();
        /*try {
            list.addIndex(6,88);
        }catch (IndexIlligelException e){
            e.printStackTrace();
        }*/

/*        try {
            System.out.println(list.contains(88));
        }catch (EmptyException e){
            e.printStackTrace();
        }*/
        //list.removeAllKey(56);
        list.clear();
        list.display();

    }

}
